<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>    
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<jsp:include page="/common.jsp"></jsp:include>
</head>
<body>
${title }
<form id="form" class="form-inline well" action="client?save" method="post">
		<input type="hidden" name="id" value="${t.id }">
			<label><span class="span1">代码:</span>
				<input type="text" name="code" class="input-medium" value="${t.code }">
			</label>
			<label><span class="span1">简称:</span>
				<input type="text" name="shortName" class="input-medium" value="${t.shortName }">
			</label>
			<label><span class="span1">名称:</span>
				<input type="text" name="name" class="input-medium" value="${t.name }">
			</label>
			<label><span class="span1">职务:</span>
				<input type="text" name="place" class="input-medium" value="${t.place }">
			</label>
			<label><span class="span1">联系人:</span>
				<input type="text" name="linkman" class="input-medium" value="${t.linkman }">
			</label>
			<label><span class="span1">电话:</span>
				<input type="text" name="phone" class="input-medium" value="${t.phone }">
			</label>
			<label><span class="span1">手机:</span>
				<input type="text" name="mobile_phone" class="input-medium" value="${t.mobile_phone }">
			</label>
			<label><span class="span1">邮箱:</span>
				<input type="text" name="email" class="input-medium" value="${t.email }">
			</label>
			<label><span class="span1">月结开始:</span>
				<input type="text" name="monthPayStart" class="input-medium" value="<fmt:formatDate value="${t.monthPayStart }" pattern="yyyy-MM-dd"/>" class="Wdate" onfocus="WdatePicker()">
			</label>
			<label><span class="span1">月结结束:</span>
				<input type="text" name="monthPayEnd" class="input-medium" value="<fmt:formatDate value="${t.monthPayEnd }" pattern="yyyy-MM-dd"/>" class="Wdate" onfocus="WdatePicker()">
			</label>
			<label><span class="span1">月结方式:</span>
				<input type="text" name="payMethod" class="input-medium" value="${t.payMethod }">
			</label>
			<label><span class="span1">付款日期:</span>
				<input type="text" name="payDate" class="input-medium" value="<fmt:formatDate value="${t.payDate }" pattern="yyyy-MM-dd"/>" class="Wdate" onfocus="WdatePicker()">
			</label>
			<label><span class="span1">网址:</span>
				<input type="text" name="website" class="input-medium" value="${t.website }">
			</label>
			<label><span class="span1">经营范围:</span>
				<input type="text" name="scopeOfperation" class="input-medium" value="${t.scopeOfperation }">
			</label>
			<label><span class="span1">传真:</span>
				<input type="text" name="fax" class="input-medium" value="${t.fax }">
			</label>
			<label><span class="span1">地址:</span>
				<input type="text" name="address" class="input-medium" value="${t.address }">
			</label>
			<label><span class="span1">收货地址:</span>
				<input type="text" name="deliveryAddress" class="input-medium" value="${t.deliveryAddress }">
			</label>
			<label><span class="span1">销售人员:</span>
				<input type="text" name="saler" class="input-medium" value="${t.saler }">
			</label>
			<label><span class="span1">助记号:</span>
				<input type="text" name="mnemonic" class="input-medium" value="${t.mnemonic }">
			</label>
			<label><span class="span1">状态:</span>
				<input type="text" name="status" class="input-medium" value="${t.status }">
			</label>
			<label><span class="span1">区域:</span>
				<input type="text" name="area" class="input-medium" value="${t.area }">
			</label>
			<label><span class="span1">备注:</span>
				<%-- <input type="text" name="reamark" class="input-medium" value="${t.remark }"> --%>
				<textarea rows="2" cols="10" name="remark">${t.remark }</textarea>
			</label>
			<div class="control-group">
                <div class="controls">
                    <c:if test="${status==view}">
                        <button class="btn btn-primary" type="submit">保存</button>
                    </c:if>
                    <a class="btn btn-primary" onclick="go('client/client?list')">返回</a>
                </div>
         	</div>
	</form>
</body>
</html>